package cn.zjj.downgrade;

import cn.zjj.domain.User;
import cn.zjj.dto.UserTicketDto;
import cn.zjj.enums.GlobalErrorCode;
import cn.zjj.result.JsonResult;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public class DowngradeUtils {

    public static JsonResult selectAllTicketblockMethod(BlockException e){

        return JsonResult.error(GlobalErrorCode.SERVICE_IS_BUSY_ERROR);
    }
    public static JsonResult seeMovieblockMethod(@RequestBody UserTicketDto userTicketDto,BlockException e){

        return JsonResult.error(GlobalErrorCode.SERVICE_IS_BUSY_ERROR);
    }
    public static JsonResult buyTicketblockMethod(@RequestBody UserTicketDto buyTicketDto,BlockException e){

        return JsonResult.error(GlobalErrorCode.SERVICE_IS_BUSY_ERROR);
    }
    public static JsonResult selectByTicketIdblockMethod(@PathVariable("id") Long id,BlockException e){

        return JsonResult.error(GlobalErrorCode.SERVICE_IS_BUSY_ERROR);
    }
    public static JsonResult saveblockMethod(@RequestBody User user,BlockException e){

        return JsonResult.error(GlobalErrorCode.SERVICE_IS_BUSY_ERROR);
    }

}
